/**
 * 验证手机号是否正确
 * @param phone
 * @returns {boolean} true-正确
 */
const validPhone = function(phone) {
	console.log('validPhone', phone)
	var reg_tel = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;
	if (!(reg_tel.test(phone))) {
		uni.showToast({
			icon: "error",
			title: '您的手机号码有误，请重新输入'
		})
		return false;
	}
	return true;
}
export default {
	validPhone
}
